package com.hero.take.entity.result;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class BaseEntity {

    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //删除标识，0-正常，1-已删除
    @TableField(value = "del_flag")
    private Integer delFlag;

    //创建时间
    @TableField(value = "create_time")
    private Date createTime;

    //创建人
    @TableField(value = "create_user")
    private String createUser;

    //更新时间
    @TableField(value = "update_time")
    private Date updateTime;

    //更新人
    @TableField(value = "update_user")
    private String updateUser;

    //删除时间
    @TableField(value = "del_time")
    private Date delTime;

    //删除人
    @TableField(value = "del_user")
    private String delUser;

    @TableField(value = "org_id")
    private Integer orgId;

    @TableField(value = "org_name")
    private String orgName;


    public static final String ID = "id";

    public static final String DEL_FLAG = "del_flag";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_USER = "create_user";

    public static final String UPDATE_USER = "update_user";

    public static final String DEL_TIME = "del_time";

    public static final String DEL_USER = "del_user";

    public static final String ORG_ID = "org_id";

    public static final String ORG_NAME = "org_name";

}
